<template>

  <div class="recommend">
  
    <div class="recommend_list">
      <div class="list_item" v-for="item in list" :key="item.id">

        <div class="item_img">
          <img :src="item.img_url" alt="">
        </div>
        <div class="item_content">
          <div class="item_box">
            <h3>{{item.name}}</h3>
            
            <div class="item_content_footer">
              <span class="m_price">{{item.m_price}}元</span>
              <span class="price">门市价：{{item.price}}元</span>
              <span class="number">已售{{item.number}}</span>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="recommend_footer">
      <p>查看其他4条团购</p>
      <span></span>
    </div>
  </div>
</template>

<script>
export default {
  name: "BeautyMida",
  props: {
    list: Array
  }
}
</script>

<style scoped>

.list_item{
  border-top: .02rem solid #c1b7b7;
  margin-top: .2rem;
  padding-top: .2rem;
  width: 100%;
  overflow: hidden;
}
.item_img{
  width: 30%;
  float: left;
}
.item_img img{
  width: 100%;
}
.item_content{
  width: 70%;
  float: right;
  text-align: left;
}
.item_box{
  margin: 0 .2rem;
}
.item_content_footer{
  margin-top: 1rem;
  width: 100%;
  overflow: hidden;
}
.item_content_footer span{
  float: left;
  display: block;
}
.item_content_footer span.number{
  float: right;
}
.item_content_footer span.m_price{
  color: green;
  font-size: .4rem;
  margin-top: -.08rem;
  margin-right: .2rem;
}
.recommend_footer p{
     border-top: .02rem solid #c1b7b7;
     color: green;
  font-size: .3rem;
}
</style>
